<?php

 include 'db.php';
 include 'input.php';
 $input = new input();
 $id = $input->get('do');
 if($id!==false){
      $sql = "delete from news where id = '{$id}'";
     if($conn->query($sql)){
         header("Location:index.php");
     }else{
         exit;
     }
 }
 
